﻿package cgs.server.logging.messages
{
    import cgs.server.logging.*;
    import flash.system.*;

    dynamic public class PageloadMessage extends Message
    {
        private var _plDetails:Object;

        public function PageloadMessage(param1:Object = null, param2:GameServerData = null)
        {
            super(param2);
            this._plDetails = param1;
            this.createDetails();
            return;
        }// end function

        private function createDetails() : void
        {
            if (this._plDetails == null)
            {
                this._plDetails = {};
            }
            this._plDetails.os = Capabilities.os;
            this._plDetails.resX = Capabilities.screenResolutionX;
            this._plDetails.resY = Capabilities.screenResolutionY;
            this._plDetails.dpi = Capabilities.screenDPI;
            this._plDetails.flash = Capabilities.version;
            this._plDetails.cpu = Capabilities.cpuArchitecture;
            this._plDetails.pixelAspect = Capabilities.pixelAspectRatio;
            this._plDetails.language = Capabilities.language;
            var _loc_1:* = GameServerData.swfDomain;
            if (_loc_1 != null)
            {
                this._plDetails.domain = _loc_1;
            }
            addProperty("pl_detail", this._plDetails);
            return;
        }// end function

    }
}
